<template >
  <div class='container'>
    <week-day :data='store.state.weekdayData' v-if='store.state.weekdayData' />
    <el-load v-else />
  </div>
</template>
<script>
import WeekDay from '@/components/list/weekday.vue'
import { onMounted } from 'vue'
import { useStore } from 'vuex'
import loadData from '@/server'
export default {
  name: 'weekdaypage',
  components: {
    WeekDay
  },
  setup() {
    const store = useStore()
    onMounted(() => {
      loadData(store)
    })
    return { store }
  }
}
</script>
<style lang="less" scoped>
.container {
  position: fixed;
  width: 100%;
  top: 82px;
  bottom: 46px;
  left: 0;
  overflow-y: auto;
}
.container::-webkit-scrollbar {
  display: none;
}
</style>
